﻿<s:SurfaceUserControl x:Class="MediaSurfaceV2.DraggedItemControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:s="http://schemas.microsoft.com/surface/2008" Height="290" Width="432">
    <Grid Background="Transparent">

        <Border x:Name="mask" CornerRadius="50" Margin="8,8,10,38">

            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">

                    <GradientStop Color="Black" Offset="0"/>

                    <GradientStop Color="#FF605F5F" Offset="1"/>

                </LinearGradientBrush>
            </Border.Background>

        </Border>
        <MediaElement LoadedBehavior="Manual" x:Name="videoElement" Stretch="Fill" Margin="25,40,26,60" />

        <Image Source="C:\Users\Public\coquette-part-6-icons-set\png\128x128px\play.png" Height="45" Width="45" Margin="187,0,200,12" VerticalAlignment="Bottom" s:Contacts.ContactDown="PlayMedia"  Name="playButton"/>

        <Image Source="C:\Users\Public\coquette-part-6-icons-set\png\128x128px\stop.png" Height="45" Width="45" Margin="0,0,146,12" VerticalAlignment="Bottom" HorizontalAlignment="Right" s:Contacts.ContactDown="StopMedia"/>

        <Image Source="C:\Users\Public\coquette-part-6-icons-set\png\128x128px\repeat.png" Height="45" Width="45" Margin="136,0,0,13" VerticalAlignment="Bottom" HorizontalAlignment="Left" s:Contacts.ContactDown="RepeatMedia"/>

        <s:ElementMenu 
				x:Name="MainMenu"

				ActivationMode="AlwaysActive"
				ActivationHost="{Binding ElementName=MenuGrid}" Background="Black" Margin="-10.5,-10,387.5,245" RenderTransformOrigin="0.227,0.182">


            <s:ElementMenuItem Header="Server" Click="ServerClick">

                <s:ElementMenuItem.Icon>

                    <Image Source="C:\Users\Public\luna-blue-icons\png\128x128\cloud_comment.png" />

                </s:ElementMenuItem.Icon>

            </s:ElementMenuItem>

            <s:ElementMenuItem Header="Chris's iPhone 4" Click="iPhoneClick">

                <s:ElementMenuItem.Icon>

                    <Image Source="C:\Users\Public\luna-blue-icons\png\128x128\iphone.png" />

                </s:ElementMenuItem.Icon>

            </s:ElementMenuItem>

            <s:ElementMenuItem Header="iPad" Click="iPhoneClick">

                <s:ElementMenuItem.Icon>

                    <Image Source="C:\Users\Public\luna-blue-icons\png\128x128\iphone.png" />

                </s:ElementMenuItem.Icon>

            </s:ElementMenuItem>

            <s:ElementMenuItem Header="Samsung HDTV" Click="TVClick">

                <s:ElementMenuItem.Icon>

                    <Image Source="C:\Users\Public\luna-blue-icons\png\128x128\television.png" />

                </s:ElementMenuItem.Icon>

            </s:ElementMenuItem>

        </s:ElementMenu>
        <Image Source="C:\Users\Public\luna-blue-icons\png\128x128\delete.png" Height="35" Width="35" Margin="0,0,11,254" VerticalAlignment="Bottom" HorizontalAlignment="Right" s:Contacts.ContactDown="CloseMedia"/>

    </Grid>
</s:SurfaceUserControl>
